
package com.nvlled.route;

import java.util.*;
import java.net.*;

public class IDGenerator {

    int currentId;
    
    public IDGenerator(int startId) {
        currentId = startId;
    }

    public IDGenerator() {
        this(1);
    }

    public synchronized int nextId() {
        int id = currentId;
        currentId++;
        return id;
    }
}
